﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HighSign.PointPatterns
{
	public class PointPatternMatchResult
	{
		#region Constructors

		public PointPatternMatchResult()
		{

		}

		public PointPatternMatchResult(string Name, double Probability, int PointPatternSetCount) : this()
		{
			this.Name = Name;
			this.Probability = Probability;
			this.PointPatternSetCount = PointPatternSetCount;
		}

		#endregion

		#region Public Properties

		public string Name { get; set; }
		public int PointPatternSetCount { get; set; }

		private double _Probability = 0;
		public double Probability
		{
			get { return _Probability; }
			set
			{
				if (value > 100 || value < 0)
					throw new OverflowException("Proability must be between zero (0) and one hundred (100)");

				_Probability = value;
			}
		}

		#endregion
	}
}
